﻿<!--{inc(header.view.html)}-->


<div class="header">    
  
                       <div class="nav">
	                                 <ul id="nav_list">
                                                 <li><a href="index.php?app=prot&act=index"  target="mainframe">产品信息列表</a></li>
                                                 <li><a href="index.php?app=prot&act=add"  target="mainframe">新增产品信息</a></li>
                                                 <li><a href="index.php?app=prot&act=cagrylist"  target="mainframe">产品分类列表</a></li>
                                                 <li><a href="index.php?app=prot&act=cagryadd"  target="mainframe">新增产品分类</a></li>
	                                 </ul>
                       </div>
                
</div>



<div id="content">
                   <h1>修改产品信息</h1>

                  <div>
                                    <div class="tips_show"><img  src="{$web_view_dir}style/images/light.gif" align="absmiddle" /> <b>提示: </b>
                                                                  <span ></span>
                                    </div>




<form action="?app=prot&act=editpost" method="post">
<input name="data[groupid]" type="hidden" value="{$data.groupid}" />
                                   <table align="center" width="100%" cellpadding="4" cellspacing="0" border="0" class="table_style">
                                   
                                   
                                  <tr onMouseOut="this.className=''" onMouseOver="this.className='bgcolor'">
	                                      <td width="15%">所属分类<font color=red>(*)</font>:</td>
	                                      <td>
	                                    	<select name="data[cat_id]" >
                                           <option value='0'>请选择分类...</option>
                                           
                                           <!--{foreach($categorydata as $_key => $_value )}-->
                                           
				<option value="{$_value.cat_id}" <!--{if ($_value.cat_id==$data.cat_id)}-->selected<!--{/if}-->>{$_value.str_pad}{$_value.cat_name}</option>
                
                                            <!--{/foreach}-->
	                                     </td>
                                 </tr>                                   
                                   
                          
                                   
                                   
                                   <tr onMouseOut="this.className=''" onMouseOver="this.className='bgcolor'">

	                                      <td >产品名称:<font color=red>(*)</font></td>
	                                      <td>
                                         <input type="text" name="data[name]" size="60" value="{$data.name}" id="title">
                   
                    
                                     </td>
                                   </tr>

                                    <tr onMouseOut="this.className=''" onMouseOver="this.className='bgcolor'">
	                                      <td>所属团购:<font color=red>(*)</font></td>
	                                      <td>
			   <label> 
<SCRIPT LANGUAGE="JavaScript" src="{SITE_URL}/data/js/ajax.js"></SCRIPT>
<SCRIPT LANGUAGE="JavaScript" src="{SITE_URL}/data/js/select_menu.js"></SCRIPT>
						
						<SCRIPT LANGUAGE="JavaScript"> 
<!--
var input_value='{$data.groupid}';
var input_name='data[groupid]';
var select_type='2';
var file='{SITE_URL}/admin/?app=prot&act=doajax';
var DIV_idb='DIV_idb'+Math.random();
var input_idb='input_idb'+Math.random();
document.write("<span id='"+DIV_idb+"'></span>");
document.write("<input type='hidden' id='"+input_idb+"' name='"+input_name+"'  size='5' value='"+input_value+"'>");
get_div_S(DIV_idb,DIV_idb,input_idb,select_type,'',input_value);
//-->
</SCRIPT>
			   </label>
			                           <br/>   <span id='showcity'></span>
                                       <?php if( $groupname ) { ?>
                                       <br/>你上次选择的团购名：{$groupname}
                                      <?php } ?>

                                          </td>
                                   </tr>  
                                   
                                  
                                 <tr >
	                                      <td>产品图片:</td>
	                                      <td>
      <phpscup:form type='duppic' width='90%' height='200' scrolling='yes' frameborder='0' size='40' name='data[my_pic]' appname='prot' sxdata='' />
	                                     </td>
                                 </tr>                                 
                                                                   
                                   
                                   
                                   <tr onMouseOut="this.className=''" onMouseOver="this.className='bgcolor'">
	                                      <td>原价:</td>

	                                      <td><input type="text" name="data[price]" size="15" value="{$data.price}">元</td>
                                  </tr>
                               
                                   
                                   <tr onMouseOut="this.className=''" onMouseOver="this.className='bgcolor'">
	                                      <td>现价:</td>

	                                      <td><input type="text" name="data[nowprice]" size="15" value="{$data.nowprice}">元</td>
                                  </tr>

                                   <tr onMouseOut="this.className=''" onMouseOver="this.className='bgcolor'">
	                                      <td>预付资金:</td>

	                                      <td><input type="text" name="data[bookprice]" size="15" value="{$data.bookprice}">元</td>
                                  </tr>
                               
  
                             
                                  <tr >
	                                      <td>缩略图:</td>
	                                      <td>
  <phpscup:form type='ouppic' width='370' height='150' scrolling='no' frameborder='0' size='40' name='data[img]' appname='prot' sxdata='' />
	                                     </td>
                                 </tr>

                                 
                                

                                
                                  <tr >
	                                     <td colspan="2" align="left" >内容:<br/>
   <phpscup:form type='webeditor' width='100%' height='450' scrolling='no' frameborder='0' name='data[content]' appname='prot' sxdata='' />                                       							 
										 </td>


                                </tr>                                    
                                
                                <tr >
	                                     <td>&nbsp;</td>
	                                     <td><input name="id" type="hidden" value="{$data.id}" /><input type="submit" class="buton" value=" 提 交 " /></td>
                                </tr>
                                </table>
                                </form>


                 </div>

</div>



<!--{inc(footer.view.html)}-->